package com.mingyuan.library.domain.lending.book.model.entity;

import com.mingyuan.library.domain.common.model.valueobject.Version;
import com.mingyuan.library.domain.lending.book.model.valueobject.BookId;
import com.mingyuan.library.domain.lending.book.model.valueobject.BookInformation;
import com.mingyuan.library.domain.lending.book.model.valueobject.BookType;

/**
 * 图书
 */
public interface Book {

    /**
     * 获取图书ID
     * @author yangzk
     * @date 2023/12/28 17:59
     **/
    default BookId bookId() {
        return getBookInformation().getBookId();
    }

    default BookType type() {
        return getBookInformation().getBookType();
    }

    BookInformation getBookInformation();

    Version getVersion();
}

